package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StCommentMapper;
import com.ruoyi.system.domain.StComment;
import com.ruoyi.system.service.IStCommentService;

/**
 * 评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-07
 */
@Service
public class StCommentServiceImpl implements IStCommentService 
{
    @Autowired
    private StCommentMapper stCommentMapper;

    /**
     * 查询评论
     * 
     * @param id 评论主键
     * @return 评论
     */
    @Override
    public StComment selectStCommentById(String id)
    {
        return stCommentMapper.selectStCommentById(id);
    }

    /**
     * 查询评论列表
     * 
     * @param stComment 评论
     * @return 评论
     */
    @Override
    public List<StComment> selectStCommentList(StComment stComment)
    {
        return stCommentMapper.selectStCommentList(stComment);
    }

    /**
     * 新增评论
     * 
     * @param stComment 评论
     * @return 结果
     */
    @Override
    public int insertStComment(StComment stComment)
    {
        return stCommentMapper.insertStComment(stComment);
    }

    /**
     * 修改评论
     * 
     * @param stComment 评论
     * @return 结果
     */
    @Override
    public int updateStComment(StComment stComment)
    {
        return stCommentMapper.updateStComment(stComment);
    }

    /**
     * 批量删除评论
     * 
     * @param ids 需要删除的评论主键
     * @return 结果
     */
    @Override
    public int deleteStCommentByIds(String[] ids)
    {
        return stCommentMapper.deleteStCommentByIds(ids);
    }

    /**
     * 删除评论信息
     * 
     * @param id 评论主键
     * @return 结果
     */
    @Override
    public int deleteStCommentById(String id)
    {
        return stCommentMapper.deleteStCommentById(id);
    }
}
